package com.glory.cqaospda.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.glory.cqaospda.R;
import com.glory.cqaospda.bean.FinalTestProgramBean;
import com.glory.cqaospda.bean.RunLotHiBean;

import java.util.List;

import androidx.annotation.Nullable;

/**
 * @author lenovo
 */
public class LotProgramAdapter extends BaseQuickAdapter<FinalTestProgramBean.ProgramList, BaseViewHolder> {
    private List<FinalTestProgramBean.ProgramList> datalist;

    public LotProgramAdapter(@Nullable List<FinalTestProgramBean.ProgramList> data) {
        super(R.layout.adapter_program, data);
        datalist = data;
    }

    @Override
    protected void convert(BaseViewHolder helper, FinalTestProgramBean.ProgramList item) {
        helper.setText(R.id.tvProgramName, item.getMProgramName());
        helper.setText(R.id.tvTestType, item.getMTestType());
    }

}
